From 296a214adef7466f04fc37fb4e7b330501021f21 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 11 Apr 2006 13:55:40 -0600 Subject: [PATCH] [IA64] Remove xenirq.c. Signed-off-by: Kevin Tian --- xen/arch/ia64/xen/irq.c | 41 +++++++++++++++++++++++++++++ xen/arch/ia64/xen/xenirq.c | 54 -------------------------------------- 2 files changed, 41 insertions(+), 54 deletions(-) delete mode 100644 xen/arch/ia64/xen/xenirq.c diff --git a/xen/arch/ia64/xen/irq.c b/xen/arch/ia64/xen/irq.c index 21282edb31..b049667602 100644 --- a/xen/arch/ia64/xen/irq.c +++ b/xen/arch/ia64/xen/irq.c @@ -544,6 +544,47 @@ int pirq_guest_unbind(struct domain *d, int irq) return 0; } +void +xen_debug_irq(unsigned long vector, struct pt_regs *regs) +{ +//FIXME: For debug only, can be removed + static char firstirq = 1; + static char firsttime[256]; + static char firstpend[256]; + if (firstirq) { + int i; + for (i=0;i<256;i++) firsttime[i] = 1; + for (i=0;i<256;i++) firstpend[i] = 1; + firstirq = 0; + } + if (firsttime[vector]) { + printf("**** (entry) First received int on vector=%lu,itc=%lx\n", + (unsigned long) vector, ia64_get_itc()); + firsttime[vector] = 0; + } +} + +/* + * Exit an interrupt context. Process softirqs if needed and possible: + */ +void irq_exit(void) +{ + sub_preempt_count(IRQ_EXIT_OFFSET); +} + +/* + * ONLY gets called from ia64_leave_kernel + * ONLY call with interrupts enabled + */ +void process_soft_irq(void) +{ + if (!in_interrupt() && local_softirq_pending()) { + add_preempt_count(SOFTIRQ_OFFSET); + do_softirq(); + sub_preempt_count(SOFTIRQ_OFFSET); + } +} + // this is a temporary hack until real console input is implemented extern void domain_pend_keyboard_interrupt(int irq); irqreturn_t guest_forward_keyboard_input(int irq, void *nada, struct pt_regs *regs) diff --git a/xen/arch/ia64/xen/xenirq.c b/xen/arch/ia64/xen/xenirq.c deleted file mode 100644 index 441bbf152a..0000000000 --- a/xen/arch/ia64/xen/xenirq.c +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Xen irq routines - * - * Copyright (C) 2005 Hewlett-Packard Co. - * Dan Magenheimer (dan.magenheimer@hp.com) - * - */ - -#include -#include -#include - -void -xen_debug_irq(ia64_vector vector, struct pt_regs *regs) -{ -//FIXME: For debug only, can be removed - static char firstirq = 1; - static char firsttime[256]; - static char firstpend[256]; - if (firstirq) { - int i; - for (i=0;i<256;i++) firsttime[i] = 1; - for (i=0;i<256;i++) firstpend[i] = 1; - firstirq = 0; - } - if (firsttime[vector]) { - printf("**** (entry) First received int on vector=%lu,itc=%lx\n", - (unsigned long) vector, ia64_get_itc()); - firsttime[vector] = 0; - } -} - -/* - * Exit an interrupt context. Process softirqs if needed and possible: - */ -void irq_exit(void) -{ - sub_preempt_count(IRQ_EXIT_OFFSET); -} - -/* - * ONLY gets called from ia64_leave_kernel - * ONLY call with interrupts enabled - */ -void process_soft_irq(void) -{ - if (!in_interrupt() && local_softirq_pending()) { - add_preempt_count(SOFTIRQ_OFFSET); - do_softirq(); - sub_preempt_count(SOFTIRQ_OFFSET); - } -} - -/* end from linux/kernel/softirq.c */ -- 2.30.2